package com.box.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class DbThemeExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public DbThemeExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andThemeTitleIsNull() {
            addCriterion("theme_title is null");
            return (Criteria) this;
        }

        public Criteria andThemeTitleIsNotNull() {
            addCriterion("theme_title is not null");
            return (Criteria) this;
        }

        public Criteria andThemeTitleEqualTo(String value) {
            addCriterion("theme_title =", value, "themeTitle");
            return (Criteria) this;
        }

        public Criteria andThemeTitleNotEqualTo(String value) {
            addCriterion("theme_title <>", value, "themeTitle");
            return (Criteria) this;
        }

        public Criteria andThemeTitleGreaterThan(String value) {
            addCriterion("theme_title >", value, "themeTitle");
            return (Criteria) this;
        }

        public Criteria andThemeTitleGreaterThanOrEqualTo(String value) {
            addCriterion("theme_title >=", value, "themeTitle");
            return (Criteria) this;
        }

        public Criteria andThemeTitleLessThan(String value) {
            addCriterion("theme_title <", value, "themeTitle");
            return (Criteria) this;
        }

        public Criteria andThemeTitleLessThanOrEqualTo(String value) {
            addCriterion("theme_title <=", value, "themeTitle");
            return (Criteria) this;
        }

        public Criteria andThemeTitleLike(String value) {
            addCriterion("theme_title like", value, "themeTitle");
            return (Criteria) this;
        }

        public Criteria andThemeTitleNotLike(String value) {
            addCriterion("theme_title not like", value, "themeTitle");
            return (Criteria) this;
        }

        public Criteria andThemeTitleIn(List<String> values) {
            addCriterion("theme_title in", values, "themeTitle");
            return (Criteria) this;
        }

        public Criteria andThemeTitleNotIn(List<String> values) {
            addCriterion("theme_title not in", values, "themeTitle");
            return (Criteria) this;
        }

        public Criteria andThemeTitleBetween(String value1, String value2) {
            addCriterion("theme_title between", value1, value2, "themeTitle");
            return (Criteria) this;
        }

        public Criteria andThemeTitleNotBetween(String value1, String value2) {
            addCriterion("theme_title not between", value1, value2, "themeTitle");
            return (Criteria) this;
        }

        public Criteria andThemeImgIsNull() {
            addCriterion("theme_img is null");
            return (Criteria) this;
        }

        public Criteria andThemeImgIsNotNull() {
            addCriterion("theme_img is not null");
            return (Criteria) this;
        }

        public Criteria andThemeImgEqualTo(String value) {
            addCriterion("theme_img =", value, "themeImg");
            return (Criteria) this;
        }

        public Criteria andThemeImgNotEqualTo(String value) {
            addCriterion("theme_img <>", value, "themeImg");
            return (Criteria) this;
        }

        public Criteria andThemeImgGreaterThan(String value) {
            addCriterion("theme_img >", value, "themeImg");
            return (Criteria) this;
        }

        public Criteria andThemeImgGreaterThanOrEqualTo(String value) {
            addCriterion("theme_img >=", value, "themeImg");
            return (Criteria) this;
        }

        public Criteria andThemeImgLessThan(String value) {
            addCriterion("theme_img <", value, "themeImg");
            return (Criteria) this;
        }

        public Criteria andThemeImgLessThanOrEqualTo(String value) {
            addCriterion("theme_img <=", value, "themeImg");
            return (Criteria) this;
        }

        public Criteria andThemeImgLike(String value) {
            addCriterion("theme_img like", value, "themeImg");
            return (Criteria) this;
        }

        public Criteria andThemeImgNotLike(String value) {
            addCriterion("theme_img not like", value, "themeImg");
            return (Criteria) this;
        }

        public Criteria andThemeImgIn(List<String> values) {
            addCriterion("theme_img in", values, "themeImg");
            return (Criteria) this;
        }

        public Criteria andThemeImgNotIn(List<String> values) {
            addCriterion("theme_img not in", values, "themeImg");
            return (Criteria) this;
        }

        public Criteria andThemeImgBetween(String value1, String value2) {
            addCriterion("theme_img between", value1, value2, "themeImg");
            return (Criteria) this;
        }

        public Criteria andThemeImgNotBetween(String value1, String value2) {
            addCriterion("theme_img not between", value1, value2, "themeImg");
            return (Criteria) this;
        }

        public Criteria andThemeDesIsNull() {
            addCriterion("theme_des is null");
            return (Criteria) this;
        }

        public Criteria andThemeDesIsNotNull() {
            addCriterion("theme_des is not null");
            return (Criteria) this;
        }

        public Criteria andThemeDesEqualTo(String value) {
            addCriterion("theme_des =", value, "themeDes");
            return (Criteria) this;
        }

        public Criteria andThemeDesNotEqualTo(String value) {
            addCriterion("theme_des <>", value, "themeDes");
            return (Criteria) this;
        }

        public Criteria andThemeDesGreaterThan(String value) {
            addCriterion("theme_des >", value, "themeDes");
            return (Criteria) this;
        }

        public Criteria andThemeDesGreaterThanOrEqualTo(String value) {
            addCriterion("theme_des >=", value, "themeDes");
            return (Criteria) this;
        }

        public Criteria andThemeDesLessThan(String value) {
            addCriterion("theme_des <", value, "themeDes");
            return (Criteria) this;
        }

        public Criteria andThemeDesLessThanOrEqualTo(String value) {
            addCriterion("theme_des <=", value, "themeDes");
            return (Criteria) this;
        }

        public Criteria andThemeDesLike(String value) {
            addCriterion("theme_des like", value, "themeDes");
            return (Criteria) this;
        }

        public Criteria andThemeDesNotLike(String value) {
            addCriterion("theme_des not like", value, "themeDes");
            return (Criteria) this;
        }

        public Criteria andThemeDesIn(List<String> values) {
            addCriterion("theme_des in", values, "themeDes");
            return (Criteria) this;
        }

        public Criteria andThemeDesNotIn(List<String> values) {
            addCriterion("theme_des not in", values, "themeDes");
            return (Criteria) this;
        }

        public Criteria andThemeDesBetween(String value1, String value2) {
            addCriterion("theme_des between", value1, value2, "themeDes");
            return (Criteria) this;
        }

        public Criteria andThemeDesNotBetween(String value1, String value2) {
            addCriterion("theme_des not between", value1, value2, "themeDes");
            return (Criteria) this;
        }

        public Criteria andThemeUrlIsNull() {
            addCriterion("theme_url is null");
            return (Criteria) this;
        }

        public Criteria andThemeUrlIsNotNull() {
            addCriterion("theme_url is not null");
            return (Criteria) this;
        }

        public Criteria andThemeUrlEqualTo(String value) {
            addCriterion("theme_url =", value, "themeUrl");
            return (Criteria) this;
        }

        public Criteria andThemeUrlNotEqualTo(String value) {
            addCriterion("theme_url <>", value, "themeUrl");
            return (Criteria) this;
        }

        public Criteria andThemeUrlGreaterThan(String value) {
            addCriterion("theme_url >", value, "themeUrl");
            return (Criteria) this;
        }

        public Criteria andThemeUrlGreaterThanOrEqualTo(String value) {
            addCriterion("theme_url >=", value, "themeUrl");
            return (Criteria) this;
        }

        public Criteria andThemeUrlLessThan(String value) {
            addCriterion("theme_url <", value, "themeUrl");
            return (Criteria) this;
        }

        public Criteria andThemeUrlLessThanOrEqualTo(String value) {
            addCriterion("theme_url <=", value, "themeUrl");
            return (Criteria) this;
        }

        public Criteria andThemeUrlLike(String value) {
            addCriterion("theme_url like", value, "themeUrl");
            return (Criteria) this;
        }

        public Criteria andThemeUrlNotLike(String value) {
            addCriterion("theme_url not like", value, "themeUrl");
            return (Criteria) this;
        }

        public Criteria andThemeUrlIn(List<String> values) {
            addCriterion("theme_url in", values, "themeUrl");
            return (Criteria) this;
        }

        public Criteria andThemeUrlNotIn(List<String> values) {
            addCriterion("theme_url not in", values, "themeUrl");
            return (Criteria) this;
        }

        public Criteria andThemeUrlBetween(String value1, String value2) {
            addCriterion("theme_url between", value1, value2, "themeUrl");
            return (Criteria) this;
        }

        public Criteria andThemeUrlNotBetween(String value1, String value2) {
            addCriterion("theme_url not between", value1, value2, "themeUrl");
            return (Criteria) this;
        }

        public Criteria andUppidIsNull() {
            addCriterion("uppid is null");
            return (Criteria) this;
        }

        public Criteria andUppidIsNotNull() {
            addCriterion("uppid is not null");
            return (Criteria) this;
        }

        public Criteria andUppidEqualTo(Integer value) {
            addCriterion("uppid =", value, "uppid");
            return (Criteria) this;
        }

        public Criteria andUppidNotEqualTo(Integer value) {
            addCriterion("uppid <>", value, "uppid");
            return (Criteria) this;
        }

        public Criteria andUppidGreaterThan(Integer value) {
            addCriterion("uppid >", value, "uppid");
            return (Criteria) this;
        }

        public Criteria andUppidGreaterThanOrEqualTo(Integer value) {
            addCriterion("uppid >=", value, "uppid");
            return (Criteria) this;
        }

        public Criteria andUppidLessThan(Integer value) {
            addCriterion("uppid <", value, "uppid");
            return (Criteria) this;
        }

        public Criteria andUppidLessThanOrEqualTo(Integer value) {
            addCriterion("uppid <=", value, "uppid");
            return (Criteria) this;
        }

        public Criteria andUppidIn(List<Integer> values) {
            addCriterion("uppid in", values, "uppid");
            return (Criteria) this;
        }

        public Criteria andUppidNotIn(List<Integer> values) {
            addCriterion("uppid not in", values, "uppid");
            return (Criteria) this;
        }

        public Criteria andUppidBetween(Integer value1, Integer value2) {
            addCriterion("uppid between", value1, value2, "uppid");
            return (Criteria) this;
        }

        public Criteria andUppidNotBetween(Integer value1, Integer value2) {
            addCriterion("uppid not between", value1, value2, "uppid");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIsNull() {
            addCriterion("createtime is null");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIsNotNull() {
            addCriterion("createtime is not null");
            return (Criteria) this;
        }

        public Criteria andCreatetimeEqualTo(Date value) {
            addCriterion("createtime =", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotEqualTo(Date value) {
            addCriterion("createtime <>", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeGreaterThan(Date value) {
            addCriterion("createtime >", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("createtime >=", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeLessThan(Date value) {
            addCriterion("createtime <", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeLessThanOrEqualTo(Date value) {
            addCriterion("createtime <=", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIn(List<Date> values) {
            addCriterion("createtime in", values, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotIn(List<Date> values) {
            addCriterion("createtime not in", values, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeBetween(Date value1, Date value2) {
            addCriterion("createtime between", value1, value2, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotBetween(Date value1, Date value2) {
            addCriterion("createtime not between", value1, value2, "createtime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIsNull() {
            addCriterion("updatetime is null");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIsNotNull() {
            addCriterion("updatetime is not null");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeEqualTo(Date value) {
            addCriterion("updatetime =", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotEqualTo(Date value) {
            addCriterion("updatetime <>", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeGreaterThan(Date value) {
            addCriterion("updatetime >", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("updatetime >=", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeLessThan(Date value) {
            addCriterion("updatetime <", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeLessThanOrEqualTo(Date value) {
            addCriterion("updatetime <=", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIn(List<Date> values) {
            addCriterion("updatetime in", values, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotIn(List<Date> values) {
            addCriterion("updatetime not in", values, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeBetween(Date value1, Date value2) {
            addCriterion("updatetime between", value1, value2, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotBetween(Date value1, Date value2) {
            addCriterion("updatetime not between", value1, value2, "updatetime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}